package po;


import java.io.Serializable;
import java.util.Objects;

/**
 * <p>  
 *  TbCountry null
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbCountry  implements Serializable {


	/**
	 * 自增id
	 */
	private Long id;

	/**
	 * 对应七大陆continent表的id
	 */
	private Long continentId;

	/**
	 * 英文常用标准名称，主要用于显示
	 */
	private String name;

	/**
	 * 对应于英文标准名称的小写，主要用于搜索比较
	 */
	private String lowerName;

	/**
	 * 英文缩写名称，全大写
	 */
	private String countryCode;

	/**
	 * 英文标准名称全称
	 */
	private String fullName;

	/**
	 * 中文常用标准名称，通常简称
	 */
	private String cname;

	/**
	 * 中文全称名称，非缩写
	 */
	private String fullCname;

	/**
	 * 备注字段，保留
	 */
	private String remark;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getContinentId() {
		return continentId;
	}

	public void setContinentId(Long continentId) {
		this.continentId = continentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLowerName() {
		return lowerName;
	}

	public void setLowerName(String lowerName) {
		this.lowerName = lowerName;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getFullCname() {
		return fullCname;
	}

	public void setFullCname(String fullCname) {
		this.fullCname = fullCname;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbCountry)) {
			return false;
		}
		TbCountry tbCountry = (TbCountry) o;
		return Objects.equals(id, tbCountry.id) &&
				Objects.equals(continentId, tbCountry.continentId) &&
				Objects.equals(name, tbCountry.name) &&
				Objects.equals(lowerName, tbCountry.lowerName) &&
				Objects.equals(countryCode, tbCountry.countryCode) &&
				Objects.equals(fullName, tbCountry.fullName) &&
				Objects.equals(cname, tbCountry.cname) &&
				Objects.equals(fullCname, tbCountry.fullCname) &&
				Objects.equals(remark, tbCountry.remark);
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, continentId, name, lowerName, countryCode, fullName, cname, fullCname, remark);
	}

	@Override
	public String toString() {
		return "TbCountry{" +
				"id=" + id +
				", continentId=" + continentId +
				", name='" + name + '\'' +
				", lowerName='" + lowerName + '\'' +
				", countryCode='" + countryCode + '\'' +
				", fullName='" + fullName + '\'' +
				", cname='" + cname + '\'' +
				", fullCname='" + fullCname + '\'' +
				", remark='" + remark + '\'' +
				'}';
	}
}
